<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>导出车站规章数据到word中</title>
<%    
response.setContentType("application/doc");    
response.setHeader("Content-Disposition", "inline; filename=\"zhanwu.doc\"");    
%> 
</head>
<body>
<center style="color: red;"><h1><font size="20">车站行车工作细则</font></h1></center><br/>
<center><h1>${ mtrain.tname}</h1></center>
<c:if test="${!empty navlist}">
	<c:forEach items="${navlist}" var="nav1" varStatus="status1"> 
	  <c:forEach items="${nav1.ruleList}" var="nav2" varStatus="status2">
	      <c:if test="${nav2.rule.rlevel eq '4'}">
				<div style="font-size: 14px; font-weight: bold; line-height: 200%;">${nav2.rule.rname}</div>
				<div style="padding-bottom: 10px; line-height: 200%;">${nav2.rule.swork.scontent }</div>
		  </c:if>
		  <c:forEach items="${nav2.ruleList}" var="nav3" varStatus="status3">
		    <c:if test="${nav3.rule.rlevel eq '4'}">
					<div style="font-size: 14px; font-weight: bold; line-height: 200%;">${nav3.rule.rname}</div>
					<div style="padding-bottom: 10px; line-height: 200%;">${nav3.rule.swork.scontent }</div>
		     </c:if>
		      <c:forEach items="${nav3.rules}" var="rule" varStatus="status4">
							<div style="font-size: 14px; font-weight: bold;line-height: 200%;">${rule.rname}</div>
							<div style="padding-bottom: 10px;line-height: 200%;">${rule.swork.scontent }</div>
		      </c:forEach>
		  </c:forEach>
	  </c:forEach>
	</c:forEach>
</c:if>

</body>
</html>
